package com.AUI.define
{
	import flash.geom.Rectangle;
	/**
	 * Boundaries.
	 * @author HuangMinPing
	 * @site www.AminLab.com
	 */
	public class ABoxModel
	{
		/**
		 * Margin boundary.
		 */
		public var margin:Rectangle = new Rectangle;
		/**
		 * Border boundary.
		 */
		public var border:Rectangle = new Rectangle;
		/**
		 * Padding boundary.
		 */
		public var padding:Rectangle = new Rectangle;
		/**
		 * Content boundary.
		 */
		public var content:Rectangle = new Rectangle;
		/**
		 * Clone.
		 */
		public function clone():ABoxModel
		{
			var copy:ABoxModel = new ABoxModel;
			copy.margin  = this.margin.clone();
			copy.border  = this.border.clone();
			copy.padding = this.padding.clone();
			copy.content = this.content.clone();
			return copy;
		}
		/**
		 * Equals.
		 */
		public function equals(target:ABoxModel):Boolean
		{
			return this.margin.equals(target.margin) && this.border.equals(target.border) && this.padding.equals(target.padding) && this.content.equals(target.content);	
		}
	}
}